#from numpy import matrix
#from numpy import linalg
import os
import fileinput
import sys

files=['irrabbit']
graphexe='graph.exe'

for fname in files:

#    mname=sys.argv[1]
#    oname=sys.argv[2]
    mname = fname + '.m'
    oname = fname + '_connectivity.txt'
    glapname = fname + '_glap.txt'

    cmd = graphexe + ' ' + oname + ' ' + glapname


    failure = os.system(cmd)

    if failure:
        print(cmd + ' failed\n');
    else:
        print(cmd + ' succeeded\n');
